import ic_traindb,ic_const,ic_train
tg=ic_traindb.TrainingGroups(ic_const.VGA_SIZE)
tg.AddImageFile('test.png')
print(tg.GiveImageGroup())
itd=ic_traindb.ImageTrainingDatabase(['a'])
itd.AddGroup(tg.GiveImageGroup(),'a')
print(itd.GiveTrainData())
train=ic_train.BasicImageClassification(ic_const.VGA_SIZE)
train.FeedTrainDatabase(itd)
train.BuildUp()
train.Train(1)
train.PredictFile('test.png')